package com.gjy.regexp;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @author 宫静雨
 * @version 1.0
 * @since 2023-06-06 16:31:29
 */
public class Util {

    private static final String WIPE_HTML = "<(?:.|\\n)*?>";

    public static String wipeHtml(String html) {
        Pattern pattern = Pattern.compile(WIPE_HTML);
        Matcher matcher = pattern.matcher(html);
        return matcher.replaceAll("");
    }
}
